home *** CD-ROM | disk | FTP | other *** search
-
- {
- if(true)
- {
- CHUDTooltip = §§newclass(CHUDTooltip,EventDispatcher);
- }
- }
-
- package Local.Game.HUD
- {
- import flash.display.InteractiveObject;
- import flash.events.EventDispatcher;
- import flash.events.MouseEvent;
-
- public class CHUDTooltip extends EventDispatcher
- {
-
-
- private var mHUD:CHUD;
-
- private var mText:String;
-
- public function CHUDTooltip(param1:CHUD, param2:InteractiveObject, param3:String, param4:Boolean = true)
- {
- if(true)
- {
- super();
- if(true)
- {
- mHUD = param1;
- if(true)
- {
- mText = param3;
- if(true)
- {
- param2.addEventListener(MouseEvent.MOUSE_OUT,e_MOUSE_OUT);
- }
- param2.addEventListener(MouseEvent.MOUSE_OVER,e_MOUSE_OVER);
- }
- if(param4)
- {
- }
- §§goto(addr54);
- }
- param2.alpha = 0;
- }
- addr54:
- }
-
- private function e_MOUSE_OVER(param1:MouseEvent = null) : void
- {
- mHUD.mDescription = mText;
- }
-
- private function e_MOUSE_OUT(param1:MouseEvent = null) : void
- {
- mHUD.ResetDescription();
- }
- }
- }
-